Hook for managing navigation state and history within the wallet widget
useWalletNavigation
(navigation: Navigation) => void
Function to navigate to a new view. Automatically manages history:
History
Current navigation history stack containing the sequence of visited views.
(history: History) => void
Direct history manipulation function. It’s recommended to use setNavigation
instead when possible because setNavigation
:
() => void
Function to navigate back to the previous view in history.
setNavigation
, you provide a Navigation
object with:
Property | Type | Description |
---|---|---|
location | string | The view/route to navigate to |
params | Record<string, any> | Optional parameters to pass to the view |